package one;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.Locale;
import java.util.Scanner;

import lib.In;
import lib.Out;
import lib.StdIn;
import lib.StdOut;

public class Demo {
	public static void main(String[] args) {
		Demo demo = new Demo();
		String path = "/C:/a.txt";
		URL url =  demo.getClass().getResource(path);
		// or URL from web
		if (url == null) {
			try {
				url = new URL(path);
			} catch (MalformedURLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			System.out.println("url == null");
		}
	}
}
